/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author LongYang
* @date 2021-06-28
**/
@Data
@TableName("kw_exam_room")
@ApiModel(value = "ExamRoom",description = "考场信息实体类")
public class ExamRoom {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "系统主键")
    private Integer id;

    @ApiModelProperty(value = "考试id")
    private Integer examId;

    @ApiModelProperty(value = "教室id")
    private Integer roomId;

    @ApiModelProperty(value = "考场名称")
    private String nameCn;

    @ApiModelProperty(value = "教室名称")
    private String roomName;

    @ApiModelProperty(value = "地点")
    private String address;

    @ApiModelProperty(value = "座位数量")
    private Integer seatNumber;

    @ApiModelProperty(value = "删除标识（0：未删除，1：已删除）")
    private String delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "考场校验状态（0：未校验，1：已校验）")
    private String status;

    @ApiModelProperty(value = "考场校验备注")
    private String checkRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}